import request from '@/utils/request'

// 查询过程检验单行列表
export function templateindexList(query) {
  return request({
    url: '/mes/qc/templateindex/list',
    method: 'get',
    params: query
  })
}
// ?pageNum=1&pageSize=10&templateId=6

// 查询检测项列表
export function listInspection(query) {
  return request({
    url: '/mes/ac/inspection/list',
    method: 'get',
    params: query
  })
}

// 查询检测项详细
export function getInspection(indexId) {
  return request({
    url: '/mes/ac/inspection/' + indexId,
    method: 'get'
  })
}

// 新增检测项
export function addInspection(data) {
  return request({
    url: '/mes/ac/inspection',
    method: 'post',
    data: data
  })
}

// 修改检测项
export function updateInspection(data) {
  return request({
    url: '/mes/ac/inspection',
    method: 'put',
    data: data
  })
}

// 删除检测项
export function delInspection(indexId) {
  return request({
    url: '/mes/ac/inspection/' + indexId,
    method: 'delete'
  })
}
